package com.bl.student.dao.repository;

import com.bl.student.dao.model.VoteEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by yujingyi on 2018/2/1.
 */
public interface VoteRepository extends JpaRepository<VoteEntity, String> {
    List<VoteEntity> findBySubjectId(String subjectId);

    void deleteBySubjectId(String subjectId);
}
